
ac.skill('猛攻伤害'){
    temp = '攻击触发',
    tip = [[攻击|cff00ff0010%|r几率对目标范围造成'dmg_tp',冷却：'cool'秒]],
    on_run = function(self,hero,target)
        local target = ac.selector('unit'):enemy(hero):range(target,600):random()
        if not target then return end
    
        local angle = hero:get_point() / target:get_point()
        local mover = hero:launch_wave(self.model1,angle,1050,900 )
        hero:priority_add(target,'弹幕优先级表',-1)
        sc.loopUnit(0.03,mover,120,function(group,unit)
            if unit:is_enemy(hero) then
                unit:add_effect(self.model2):remove()
                hero:create_damage(unit,self.rate1,self)
            end
        end)
    end,
}


ac.skill('SR-力量1'){
    temp = '猛攻伤害',
    model1 = [[Abilities\Spells\Orc\Shockwave\ShockwaveMissile.mdl]],
}

ac.skill('SR-力量2'){
    temp = '猛攻伤害',
    model1 = [[Abilities\Spells\Other\CrushingWave\CrushingWaveMissile.mdl]],
}

ac.skill('SR-力量3'){
    temp = '猛攻伤害',
    model1 = [[Abilities\Spells\Undead\CarrionSwarm\CarrionSwarmMissile.mdl]],
}

ac.skill('SR-力量4'){
    temp = '猛攻伤害',
    model1 = [[Abilities\Spells\Other\Tornado\TornadoElemental.mdl]],
}

ac.skill('SR-力量5'){
    temp = '召唤单位',
    cool = 30,
    model1 = [[Abilities\Weapons\SearingArrow\SearingArrowMissile.mdl]],
    summon_unit = '战熊',
    summon_group = '战熊组',
    tip = [[召唤一只|cff00ff00战熊|r协助战斗，持续30秒|n|n战熊攻击：100%英雄攻击|n战熊生命：1000%英雄攻击|n战熊护甲：100%英雄护甲]],
    set_summon = function(self,unit)
        local hero = self.owner
        local atk = hero:get('攻击')
        unit:set('基础攻击',atk * 1)
        unit:set('生命上限',atk * 10)
    end
}